<?php

namespace Database\Factories;

use App\Models\Balance;
use Illuminate\Database\Eloquent\Factories\Factory;

class BalanceFactory extends Factory
{
  /**
   * The name of the factory's corresponding model.
   *
   * @var string
   */
  protected $model = Balance::class;

  /**
   * Define the model's default state.
   *
   * @return array
   */
  public function definition()
  {
    return [
      "order_id" => app('snowflake')->id(),
      "user_id" => $this->faker->numberBetween(2, 22),
      // "seller_id" => $this->faker->numberBetween(1, 22),
      "type" => $this->faker->numberBetween(1, 6),
      "value" => $this->faker->numberBetween(-100, 100),
      "b4" => $this->faker->numberBetween(10, 200),
      "after" => $this->faker->numberBetween(10, 200)
    ];
  }
}
